package overriden;

class Animal3 {
	public void eat() throws Exception {
		//throws an Exception
	}
}

public class Dog2 extends Animal3 {
	public void eat() { /* no Exceptions */	}
	public static void main (String [] args) {
		Animal3 a3 = new Dog2();
		Dog2 d = new Dog2();
		d.eat();  //ok
		//a3.eat(); //compiler error - unreported exception
	}

}
